const express = require('express');

const app = express();

app.all('/check-username',(request,response)=>{
    const data = {
        exist:1,
        msg:'用户名已存在，请重新输入'
    }
    let str = JSON.stringify(data);
    response.end(`handle(${str})`);
})

app.listen(8000,()=>{
    console.log('服务器已启动');
});